home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _5D08EC739EB441DAB816B4CA2C4E27DB < prev    next >
Encoding:
Text File  |  2004-01-06  |  3.5 KB  |  135 lines

  1. --#Script:LoadScript("scripts/materials/mat_wood2.lua")
  2.  
  3. Script:LoadScript("scripts/materials/commoneffects.lua");
  4.  
  5. Materials["mat_wood2"] = {
  6.  
  7.     type="mat_wood2",
  8.  
  9. -------------------------------------
  10.     PhysicsSounds=PhysicsSoundsTable.Hard,
  11. -------------------------------------    
  12.     bullet_drop_single = CommonEffects.common_bullet_drop_single_wood,
  13.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_wood,
  14. -------------------------------------    
  15.     bullet_hit = {
  16.         sounds = {
  17.             {"Sounds/Bullethits/Wbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  18.             {"Sounds/Bullethits/Wbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  19.             {"Sounds/Bullethits/Wbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  20.             {"Sounds/Bullethits/Wbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  21.             
  22.         },
  23.         
  24.         decal = { 
  25.             texture = System:LoadTexture("Textures/Decal/wood.dds"),
  26.             scale = 0.04,
  27.         },
  28.         particleEffects = {
  29.             name = "bullet.hit_wood.a",
  30.         },
  31.     },
  32.  
  33.     pancor_bullet_hit = {
  34.         sounds = {
  35.             {"Sounds/Bullethits/Wbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  36.             {"Sounds/Bullethits/Wbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  37.             {"Sounds/Bullethits/Wbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  38.             {"Sounds/Bullethits/Wbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  39.                 },
  40.         
  41.         decal = { 
  42.             texture = System:LoadTexture("Textures/Decal/wood.dds"),
  43.             scale = 0.04,
  44.                 },
  45.         particleEffects = {
  46.             name = "bullet.hit_wood_pancor.a",
  47.                 }, 
  48.     },
  49.  
  50.     flashgrenade_hit =         
  51.     {
  52.             particles = 
  53.         {
  54.             { 
  55.                 focus = 0.5,
  56.                 color = {1,1,1},
  57.                 speed = 8.0, --default 5.0
  58.                 count = 120, --default 75
  59.                 size = 0.1, 
  60.                 size_speed=0,
  61.                 gravity = {x = 0.0, y = 0.0, z = -8},
  62.                 rotation = {x = 0.0, y = 0.0, z = 20},
  63.                 lifetime=2.00,
  64.                 tid = System:LoadTexture("textures\\sprites\\chip.dds"),
  65.                 tail_length = 0.0,
  66.                 frames=1,
  67.  
  68.             },
  69.         },
  70.     },
  71.     projectile_hit =     {
  72.     
  73.         particleEffects = {
  74.             name = "explosions.rocket.a",
  75.         },    
  76.     
  77.             particles = 
  78.         {
  79.             { 
  80.                 focus = 0.5,
  81.                 color = {1,1,1},
  82.                 speed = 8.0, --default 5.0
  83.                 count = 120, --default 75
  84.                 size = 0.1, 
  85.                 size_speed=0,
  86.                 gravity = {x = 0.0, y = 0.0, z = -8},
  87.                 rotation = {x = 0.0, y = 0.0, z = 20},
  88.                 lifetime=2.00,
  89.                 tid = System:LoadTexture("textures\\sprites\\chip.dds"),
  90.                 tail_length = 0.0,
  91.                 frames=1,
  92.  
  93.             },
  94.         },
  95.     },
  96.     mortar_hit = CommonEffects.common_mortar_hit,
  97.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  98.  
  99.     grenade_hit = CommonEffects.common_grenade_hit,
  100.     melee_slash = {
  101.         sounds = {
  102.             {"sounds/weapons/machete/machetewood1.wav",SOUND_UNSCALABLE,185,5,30},
  103.             {"sounds/weapons/machete/machetewood2.wav",SOUND_UNSCALABLE,185,5,30},
  104.             {"sounds/weapons/machete/machetewood3.wav",SOUND_UNSCALABLE,185,5,30},
  105.         },
  106.         particles =  CommonEffects.common_machete_hit_wood_part.particles,
  107.     },
  108. -------------------------------------
  109.     player_walk = CommonEffects.player_wood_walk,
  110.     player_run = CommonEffects.player_wood_run,
  111.     player_crouch = CommonEffects.player_wood_crouch,
  112.     player_prone = CommonEffects.player_wood_prone,
  113.     player_walk_inwater = CommonEffects.player_walk_inwater,
  114.     
  115.     player_drop = {
  116.         sounds = {
  117.             {"sounds/player/bodyfalls/bodyfallwood1.wav",SOUND_UNSCALABLE,210,10,150},
  118.         },
  119. --        decal = { 
  120. --            texture = System:LoadTexture("Textures/Decal/Default.tga"),
  121. --            scale = 0.1,
  122. --        },
  123.     },
  124.     gameplay_physic = {
  125.         piercing_resistence = 15,
  126.         friction = 0.5,
  127.         bouncyness= 0.05, --default 0
  128.     },
  129.  
  130.     AI = {
  131.         fImpactRadius = 5,
  132.     },
  133.  
  134.         
  135. }